///
/// View
///

// Constants
var view_create_token_prefix = "v_create_token_";

// Calls

function buildCreateTokenView() {
  // Getting view
  var view = getNewView(view_create_token_prefix + "view");
  
  //bondi.pim.contact.getAddressBooks();
  
  var div = getNewElement("div", null, {"id": view_create_token_prefix + "action_create", "className": "action"});
  view.appendChild(div);
  
  // Appending view to content
  appendToContent(view);
}

// Callbacks

function cb_succ_getAddrBook(handler) {
  // Param handler is a collection of AddressBooks
  var addrbook = handler[0];
  for (var i in addrbook)
    alert(i + " - " + handler[i]);
}

function cb_err_getAddrBook(e) {
}

